package cn.btks.resultintegration.rule.repository;

import cn.btks.resultintegration.rule.pojo.Kfqsxb;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/10/15 15:12
 */
@Repository
public interface KfqsxbRepository extends JpaRepository<Kfqsxb,Long> {

    /**
     * 根据国民经济代码查询
     * @param gmjjdm
     * @return
     */
    @Query(value = "select * from kfqsxb where gmjjdm = ?1 ",nativeQuery = true)
    List<Kfqsxb> findAllByGmjjdm(String gmjjdm);
}
